This script allows you to set the maximum battery charge level on your Windows machine. It provides a user-friendly way to input your desired battery charge percentage and applies the setting using either a .bat or .ps1 file.
The script utilizes Windows PowerShell commands to modify the battery charge settings. It prompts the user to input their desired charge percentage, validates the input to ensure it falls within the allowable range (50% to 100%), and then sets the maximum battery charge accordingly.
cd
command..\bat_limiter.ps1
.graph LR A[Start] --> B[Input Desired Charge Percentage] B --> C{Validate Input} C -- Valid --> D[Set Maximum Battery Charge Level] C -- Invalid --> E[Display Error Message] D --> F[Apply Changes] F --> G[End] E --> A
5dd8f6e0-7d83-4c3e-bfcb-00b0c98b9b09
) for the battery setting, which may vary depending on your system. Ensure that it works correctly on your machine. If you encounter issues, consult your system documentation or modify the script with the appropriate GUID for your system.